﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace WorldOnFire
{
    /// <summary>
    /// This class represents an enemy target. 
    /// It is contained by CHomeworld and CMiningBase.
    /// The target's value is considered by CWaveManager when picking targets for waves.
    /// </summary>
    public class CTarget : ABCObject
    {
        public Vector3[] m_vPosition;
        private float[] m_fTargetValue;

        public void SetValue(int _nIndex, float _fValue)
        { m_fTargetValue[_nIndex] = _fValue; }

        public float GetValue(int _nIndex)
        { return m_fTargetValue[_nIndex]; }

        public override void Initialize(int _nObjectCount)
        {
            // Initialize the base members
            base.Initialize(_nObjectCount);

            // Initialize the arrays
            m_vPosition = new Vector3[_nObjectCount];
            m_fTargetValue = new float[_nObjectCount];
        }
    }
}
